package com.example.service.fg

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.alibaba.android.arouter.launcher.ARouter
import com.example.common.view.view.BaseMvvmFragment
import com.example.service.R
import com.example.service.databinding.FragmentServiceBinding
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
class ServiceFragment : BaseMvvmFragment<FragmentServiceBinding>() {
    override fun initView() {
        super.initView()
        mDataBinding.device.setOnClickListener {
            ARouter.getInstance().build("/devices/DevicesActivity").navigation()
        }
        mDataBinding.car.setOnClickListener {
            ARouter.getInstance().build("/car/CarActivity").navigation()
        }
        mDataBinding.house.setOnClickListener {
            ARouter.getInstance().build("/house/HouseActivity").navigation()
        }
        mDataBinding.company.setOnClickListener {
            ARouter.getInstance().build("/company/CompanyActivity").navigation()
        }
        mDataBinding.payer.setOnClickListener {
            ARouter.getInstance().build("/payer/PayerActivity").navigation()
        }
        mDataBinding.member.setOnClickListener {
            ARouter.getInstance().build("/memberships/MembershipsActivity").navigation()
        }
    }

    override fun getLayoutId(): Int = R.layout.fragment_service
}